package com.wanmait.recruitment.mapper;

import com.wanmait.recruitment.pojo.Deliver;
import org.apache.ibatis.annotations.Param;
import com.wanmait.recruitment.pojo.Job;
import org.apache.ibatis.annotations.Param;
import org.springframework.boot.autoconfigure.batch.BatchProperties;

import java.util.List;

public interface DeliverMapper {
    int deleteById(Integer id);
    int deleteByPrimaryKey(Integer id);
    //添加设置简历时间状态Id
    int updateResumeState(@Param("deliverId") Integer deliverId,@Param("resumeStateId")Integer resumeStateId);
    //查看待处理简历
    List<Deliver>pending(@Param("companyId") Integer companyId ,@Param("exRequireId")Integer exRequireId
            ,@Param("degreeId")Integer degreeId,@Param("state")Integer state);
    //查看待定简历
    List<Deliver>canInterviewResumes(@Param("companyId") Integer companyId ,@Param("exRequireId")Integer exRequireId
            ,@Param("degreeId")Integer degreeId,@Param("state")Integer state);
    int insert(Deliver deliver);
    //设置不合适简历
    int inappropriate(Integer id);
    //设置待定简历
    int canInterview(Integer id);
    //设置已查看简历
    int Viewed(Integer id);
    //设置通过面试状态
    int adopt(Integer id);
    int insertSelective(Deliver record);
    //查看不合适的简历
    List<Deliver>inappropriateList(Integer id);
    //简历自动过滤器
    List<Deliver>findBycompanyId(Integer id);
    //公司移除简历
    int removed(Integer id);
    //查询每个职位收到的简历数量
    int findByJobResume(Integer id);
    //查询已经通知面试的简历
    List<Deliver>haveNoticeResumes(Integer id);
    //查询所有收到的简历
    List<Deliver>findBycompany(@Param("companyId") Integer companyId ,@Param("exRequireId")Integer exRequireId
    ,@Param("degreeId")Integer degreeId,@Param("state")Integer state);
    //根据用户Id查询
    List<Deliver>findByUserId(@Param("id") Integer id,@Param("state") Integer state);

    Deliver selectById(Integer id);

    int updateByPrimaryKeySelective(Deliver record);

    int updateByPrimaryKey(Deliver record);

    Deliver selectByUserinfoId(@Param("userinfoId")Integer userinfoId,@Param("jobId")Integer jobId);
}